<!DOCTYPE html>
<html>
  <head>
    <meta charset="utf-8">
    <meta name="viewport" content="initial-scale=1, maximum-scale=1, user-scalable=no, width=device-width">
    <title></title>

    <link href="lib/ionic/css/ionic.css" rel="stylesheet">
    <link href="css/style.css" rel="stylesheet">

    <!-- IF using Sass (run gulp sass first), then uncomment below and remove the CSS includes above
    <link href="css/ionic.app.css" rel="stylesheet">
    -->

    <!-- ionic/angularjs js -->
    <script src="lib/ionic/js/ionic.bundle.js"></script>

    <!-- cordova script (this will be a 404 during development) -->
    <script src="cordova.js"></script>

    <!-- your app's js -->
    <script src="js/app1.js"></script>
    <script src="js/app2.js"></script>
    <!--<script src="js/controllers1.js"></script>-->
    <!--<script src="js/services1.js"></script>-->
  </head>
  <body ng-app="todo" ng-controller="TodoCtrl">
  <ion-side-menus>

    <!-- 中心内容 -->
    <ion-side-menu-content>
      <ion-header-bar class="bar-dark">
        <h1 class="title">成功企业家俱乐部</h1>
        <button class="button button-icon" ng-click="newTask()">
          <i class="icon ion-compose"></i>
        </button>
      </ion-header-bar>
      <ion-content>
        <ion-list>
          <ion-item ng-repeat="task in tasks">{{task.title}}</ion-item>
        </ion-list>
      </ion-content>
    </ion-side-menu-content>

    <!-- 左侧菜单 -->
    <ion-side-menu side="left">
      <ion-header-bar class="bar-dark">
        <h1 class="title">项目</h1>
        <button class="button button-icon ion-plus" ng-click="newProject()"></button>
      </ion-header-bar>
      <ion-content scroll="false">
        <ion-list>
          <ion-item ng-repeat="project in projects" ng-click="selectProject(project, $index)" ng-class="{active: activeProject == project}">
            {{project.title}}
          </ion-item>
        </ion-list>
      </ion-content>
    </ion-side-menu>

    <script id="new-task.html" type="text/ng-template">
      <div class="modal">
        <ion-header-bar class="bar-secondary">
          <h1 class="title">新任务</h1>
          <button class="button button-clear button-positive" ng-click="closeNewTask()">取消</button>
        </ion-header-bar>
        <ion-content>
          <form ng-submit="createTask(task)">
            <div class="list">
              <label class="item item-input">
                <input type="text" placeholder="你想要干什么?" ng-model="task.title"/>
              </label>
            </div>

            <div class="padding">
              <input  type="submit" class="button button-block button-positive" value="创建任务"> </input>
            </div>
          </form>
        </ion-content>

      </div>
    </script>

  </ion-side-menus>
  </body>
</html>
